package cn.wsalix.weixin.req.entity;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import cn.wsalix.weixin.entity.BaseMsg;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "WX_REQ_MES")
@Inheritance(strategy = InheritanceType.JOINED)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
public class BaseReqMsg extends BaseMsg {

	/**
	 * 
	 */
	private static final long serialVersionUID = 154984848300582529L;
	@XStreamAlias("MsgId")
	String msgId;

	public BaseReqMsg() {
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

}
